package com.bawei.module_home.state

import com.bawei.library_mvi.IState
import com.bawei.module_home.model.entity.CommentEntity


/**
 * @author hahajing 企鹅：444511958
 * @createDate 2022/7/5 14:16
 * @description
 *
 * @updateUser hahajing
 * @updateDate 2022/7/5 14:16
 * @updateRemark
 *
 * @version 1.0.0
 */
sealed class CommentState: IState {

    /**
     * 成功获取评论信息
     */
    data class CommentSuccessState(val list:List<CommentEntity>):CommentState()

    /**
     * 获取评论信息失败
     */
    object CommentFailedState : CommentState()

    /**
     * 发布评论成功
     */
    data class PublishCommentSuccess(val entity:CommentEntity): CommentState()

    /**
     * 发布评论失败
     */
    object PublishCommentFailed: CommentState()
    /**
     * 出现401错误 即未登录
     */
    object PublishComment401Failed:CommentState()

    /**
     * 初始状态
     */
    object Init : CommentState()
}